package day04;

import java.util.Arrays;
public class TestArray5{
	public static void main(String[]args){
		int[] a = {6,7,5,8,10,9,4,4,2,3};
		Arrays.sort(a);
		
		for(int i=0; i<a.length; i++){
			System.out.print(a[i]+" ");
		}
		int index = Arrays.binarySearch(a, 10);
		System.out.println("index="+index);
		System.out.println();
		int[] b = new int[10];
		Arrays.fill(b, -1);
		for(int i=0; i<b.length; i++){
			System.out.print(b[i]+" ");
		}
	}
}